package com.engine.devcom.mode.service;

import weaver.hrm.User;

import java.util.Map;

/**
 * @author : hmy
 * @since : 2025/5/6
 */
public interface BaseRestService {


    Map<String, Object> getDataList(String interfaceKey, Map<String, Object> params, User user);

    Map<String, Object> getDataByCondition(String interfaceKey, Map<String, Object> params, User user);

    /**
     * 暂时支持单条更新
     *
     * @param interfaceKey
     * @param params
     * @return
     */
    Map<String, Object> modifyByCondition(String interfaceKey, Map<String, Object> params, User user);

    Map<String, Object> removeByCondition(String interfaceKey, Map<String, Object> params, User user);

}
